package operation;

import Book.Book;
import Book.BookList;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-02
 * Time: 10:57
 */
public class ShowBook implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("增加图书");

        int currSize = bookList.getUsedSize();
        for (int i = 0; i < currSize; i++) {
            Book book = bookList.getBooks(i);
            System.out.println(book);
        }
    }
}
